﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>序列化</title>
    <script>
        function aa() {
            var o = { x: 1, y: { z: [false, null, ""] } };
            var s = JSON.stringify(o);
            var p = JSON.parse(s);
            alert(p);
        }
    </script>
</head>
<body onload="aa();">

</body>
</html>